﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using FTchina;

public partial class UI_welcome : System.Web.UI.Page
{
    public string flagsf = "游客";
    protected void Page_Load(object sender, EventArgs e)
    {
        basic.CheckAdmin(this);
        basic.ChkPoewr(this, FTchina.Api.htmlpath.GetCurrentPagePath());
        flagsf = FTchina.Library.MasterHelper.Nickname;

    }

    public string GetSendAllCount()
    {
        using (DataTable dt = shujuku.GetDataTable("select sum (sended) from sendermoney  "))
        {
            return dt.Rows[0][0].ToString();
        }
    }
    public string GetSendingAllCount()
    {
        using (DataTable dt = shujuku.GetDataTable("select count(id) from sms_sending  "))
        {
            return dt.Rows[0][0].ToString();
        }

    }

    public string GetunUnSendAllCount()
    {
        using (DataTable dt = shujuku.GetDataTable("select count(id) from sms_Log where state<>'1'  "))
        {
            return dt.Rows[0][0].ToString();
        }

    }
}
